package com.yidu.t299.service.zzy.impl;

import com.yidu.t299.dao.zzy.ClasssMapper;
import com.yidu.t299.domain.zzy.Class;
import com.yidu.t299.service.zzy.ClasssBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:周子怡
 * @Date:2023/03/13/11:15
 * @Description:
 */
@Service
public class ClasssBizImpl implements ClasssBiz {
    @Autowired
    private ClasssMapper classMapper;
    /**
     * 根据学员名称查询学员编号
     *
     * @param classId 学员名称
     * @return 学员编号
     */
    @Override
    public Integer selectByName(Integer classId) {
        return classMapper.selectByName(classId);
    }

    @Override
    public List<Class> selectAllGetClass() {
        return classMapper.selectAllGetClass();
    }
}
